﻿using System;

namespace SmlEngine
{
    /// <summary>
    /// Event arguments for the CollectionChangedEvent.
    /// </summary>
    /// <typeparam name="T">The collection type.</typeparam>
    public class CollectionChangedEventArgs<T> : EventArgs
    {
        public string ComponentName { get; private set; }
        public T Item { get; private set; }
        public CollectionAction Action { get; private set; }

        public CollectionChangedEventArgs(string componentName, T item, CollectionAction action)
        {
            ComponentName = componentName;
            Item = item;
            Action = action;
        }
    }
}
